package demo

import scala.io.StdIn

object IfElseDemo {

  def main(args: Array[String]): Unit = {

    var num = StdIn.readInt()

    var res = if (num % 2 == 1)
      "基数"
    else
      "偶数"
    print(res)


    //match case 结构
    val result = num match {
      case 1 =>
        "输入的是1"
      case 2 =>
        "输入的是2"
    }
    println(result)
    print(s"输入的是${result}")


  }

}
